//
//  Error+.swift
//  Kuai500
//
//  Created by MAC on 2021/6/9.
//  Copyright © 2021 ven. All rights reserved.
//

import Foundation

public extension Error {
    /// error code
    var code: Int {
        return (self as NSError).code
    }
}
